package net.uman.web;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import net.uman.entity.Article;
import net.uman.entity.Bbsplate;
import net.uman.entity.User;
import net.uman.service.ArticleManager;
import net.uman.service.BbsplateManager;
public class LoginAction extends CrudActionSupport<User> {
	private static final long serialVersionUID = 7968432779889141555L;
	public List<Article> newsList= new ArrayList<Article>();
	public List<Bbsplate> plateList = new ArrayList<Bbsplate>();
	
	@Autowired
	private ArticleManager articleManager;
	@Autowired
	private BbsplateManager bbsplateManager;
	
	public String execute() {
		newsList = articleManager.getFrontNews();
		plateList = bbsplateManager.getFrontPlates();
		return SUCCESS;
	}


	public User getModel() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String list() throws Exception {
		return null;
	}

	@Override
	public String input() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String save() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String delete() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected void prepareModel() throws Exception {
		// TODO Auto-generated method stub
		
	}
}
